package com.madao.im.config.exception;

/**
 * 基础异常
 *
 * @author chengjunchao
 * @version 1.0.0
 * @date 2021/12/6 15:58
 */
public class BaseException extends RuntimeException {
    private int code;

    public int getCode() {
        return this.code;
    }

    public BaseException(Throwable cause) {
        super(cause);
    }

    public BaseException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public BaseException(Integer code) {
        super();
        this.code = code;
    }

    public BaseException(Integer code, Throwable cause) {
        super(cause);
        this.code = code;
    }

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
}
